/*
 * @Descripttion:
 * @Author: cuidm
 * @Date: 2022-05-25 16:19:56
 * @LastEditors: cuidm
 * @LastEditTime: 2022-08-08 11:26:44
 */

import BusinessTopologyIndex from './businessTopology/index';
import ServiceTemplateIndex from './serviceTemplate/index';
import ServiceTemplateDetail from './serviceTemplate/details';
import SyncServiceTemplate from './serviceTemplate/instance/sync';
import ClusterTemplateIndex from './clusterTemplate/index';
import CreateClusterTemplate from './clusterTemplate/create';
import ClusterTemplateDetail from './clusterTemplate/details';
import SyncClusterTemplate from './clusterTemplate/instance/sync';
import ServiceCategoryIndex from './serviceCategory/index';

const resourceRouterConfig = [
    {
        path: '/business/topology',
        exact: true,
        component: BusinessTopologyIndex,
    },
    {
        path: '/business/topology/:id',
        exact: true,
        component: BusinessTopologyIndex,
    },
    {
        path: '/business/topology',
        exact: true,
        component: BusinessTopologyIndex,
    },
    {
        path: '/business/serviceTemplate',
        exact: true,
        component: ServiceTemplateIndex,
    },
    {
        path: '/business/serviceTemplate/detail/:id',
        exact: true,
        component: ServiceTemplateDetail,
    },
    {
        path: '/business/serviceTemplate/detail/:id/sync',
        exact: true,
        component: SyncServiceTemplate,
    },
    {
        path: '/business/clusterTemplate',
        exact: true,
        component: ClusterTemplateIndex,
    },
    {
        path: '/business/clusterTemplate/create',
        exact: true,
        component: CreateClusterTemplate,
    },
    {
        path: '/business/clusterTemplate/update',
        exact: true,
        component: CreateClusterTemplate,
    },
    {
        path: '/business/clusterTemplate/detail/:id',
        exact: true,
        component: ClusterTemplateDetail,
    },
    {
        path: '/business/clusterTemplate/detail/:id/sync',
        exact: true,
        component: SyncClusterTemplate,
    },
    {
        path: '/business/serviceCategory',
        exact: true,
        component: ServiceCategoryIndex,
    },
];

export default resourceRouterConfig;
